/* =========================================================
   PROYECTOS - GLOBAL STYLES (LIMPIO)
   ✅ Variables completas
   ✅ Navbar + Banner + Secciones de proyecto + Footer
   ✅ Font Awesome (sin SVG sprites)
========================================================= */

/* ===================== VARIABLES ===================== */
.project-gallery__box img {
  width: 100%;
  height: 400px;      /* mismo alto para todas */
  object-fit: cover;  /* recorta sin deformar */
  display: block;
}

:root {
  --color-primary: #c47a5a;
  --color-secondary: #3f5e73;
  --color-accent: #7d8f84;

  --color-background-light: #f2e8cf;
  --color-background-gray: #e4e7df;

  --color-text-body: #373636;
  --color-text-light: #ffffff;

  --height-navbar: 6rem;

  --font-size-h1: 3rem;
  --font-size-h2: 2.6rem;
  --font-size-h3: 1.8rem;
  --font-size-h4: 1.5rem;
  --font-size-paragraph: 1.3rem;

  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 8px 15px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.15);
  --radius: 0.5rem;

  --dur-fast: 220ms;
  --dur-med: 320ms;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* ===================== RESET / BASE ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text-body);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(196, 122, 90, 0.55);
  outline-offset: 3px;
}

/* ===================== LAYOUT ===================== */
main.container {
  width: 100%;
  overflow: hidden;
  position: relative;

  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
}

.navbar__wrapper,
.banner__wrapper,
.project-details__wrapper,
.project-gallery__wrapper,
.project-action__wrapper,
.footer__wrapper {
  max-width: 75rem;
  width: 90%;
  margin: 0 auto;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--color-primary);
}

.navbar__wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: var(--height-navbar);
  align-items: center;
}

.logo-brand {
  width: 8rem;
  text-decoration: none;
  display: grid;
  justify-self: start;
  align-items: center;
}

.logo-brand__image {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.menu-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  justify-self: end;
  align-items: center;
  padding: 0.5rem;
}

.menu-icon {
  font-size: 1.8rem;
  color: var(--color-background-light);
}

/* mobile menu */
.menu-list {
  position: absolute;
  top: var(--height-navbar);
  left: -100%;
  z-index: 110;

  width: 100%;
  height: calc(100vh - var(--height-navbar));
  background: var(--color-primary);
  border-top: 0.5px solid rgba(242, 232, 207, 0.4);

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, 3.5rem);

  transition: left var(--dur-med) var(--ease);
  overflow: hidden;
}

.menu-list__item {
  border-bottom: 0.5px solid rgba(242, 232, 207, 0.35);
}

.menu-list__link {
  display: block;
  height: 3.5rem;
  line-height: 3.5rem;
  text-align: center;

  text-decoration: none;
  font-size: var(--font-size-paragraph);
  font-weight: 300;
  color: var(--color-background-light);

  transition: background-color var(--dur-fast) var(--ease);
}

.menu-list__link:hover {
  background-color: rgba(242, 232, 207, 0.12);
}

.show {
  left: 0;
}

/* Desktop nav */
@media (min-width: 910px) {
  .menu-btn {
    display: none;
  }

  .navbar__wrapper {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .menu-list {
    position: static;
    left: 0;
    top: auto;

    height: var(--height-navbar);
    width: auto;
    background: transparent;
    border-top: none;
    overflow: visible;

    grid-template-columns: repeat(5, auto);
    grid-template-rows: var(--height-navbar);
    gap: 3rem;

    transition: none;
  }

  .menu-list__item {
    border-bottom: none;
  }

  .menu-list__link {
    padding: 0;
    color: #ffffff;
    position: relative;
  }

  .menu-list__link:hover {
    background: none;
  }

  .menu-list__link::before,
  .menu-list__link::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-background-light);
    transform: scaleX(0);
    transition: transform var(--dur-med) var(--ease);
  }

  .menu-list__link::before {
    top: 6px;
    transform-origin: left;
  }

  .menu-list__link::after {
    bottom: 6px;
    transform-origin: right;
  }

  .menu-list__link:hover::before,
  .menu-list__link:hover::after {
    transform: scaleX(1);
  }
}

/* ===================== BANNER ===================== */
.banner {
  position: relative;
  height: calc(100vh - var(--height-navbar));
  display: grid;
  place-items: center;
  color: var(--color-background-light);
}

.banner picture {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.5;
  z-index: 2;
}

.banner__wrapper {
  position: relative;
  z-index: 3;
}

.banner__text {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}

.banner__title--h1 {
  font-size: var(--font-size-h1);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.banner__title--h3 {
  font-size: var(--font-size-h4);
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner__buttons {
  width: 100%;
  display: flex;
  justify-content: center;
}

.banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 320px;
  height: 60px;

  border-radius: 0.3rem;
  text-decoration: none;
  cursor: pointer;

  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.banner__button--primary {
  background: #333333;
  color: var(--color-text-light);
}

.banner__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.banner__button--text {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .banner__title--h1 {
    font-size: 4rem;
  }

  .banner__title--h3 {
    font-size: 1.8rem;
    font-weight: 300;
  }

  .banner__button {
    max-width: 300px;
  }
}

@media (min-width: 1080px) {
  .banner__title--h1 {
    font-size: 5rem;
  }
}

/* ===================== PROJECT DETAILS ===================== */
.project__details {
  background: var(--color-background-light);
}

.project-details__wrapper {
  margin: 5rem auto;
}

.project-details__item {
  background: var(--color-background-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
  text-align: left;
}

.project-details__title {
  font-size: var(--font-size-h2);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.project__info {
  font-size: var(--font-size-paragraph);
  font-weight: 400;
  color: var(--color-text-body);
}

.project__info--item strong {
  font-weight: 800;
}

.project__info--description {
  margin-top: 1rem;
}

/* ===================== GALLERY ===================== */
.project__gallery {
  background: var(--color-background-gray);
}

.project-gallery__wrapper {
  margin: 5rem auto;
  text-align: center;
}

.project-gallery__title {
  font-size: var(--font-size-h2);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.project-gallery__box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.project-gallery__image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  background: var(--color-background-light);
}

/* ===================== CTA ===================== */
.project__cta {
  background: var(--color-background-light);
}

.project-action__wrapper {
  margin: 5rem auto;
  text-align: center;
}

.project-action__title {
  font-size: var(--font-size-h2);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.project__cta--text {
  font-size: var(--font-size-paragraph);
  font-weight: 400;
  color: var(--color-text-body);
  max-width: 80ch;
  margin: 0 auto 2rem;
}

.project__cta--buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 320px;
  height: 60px;

  border-radius: 0.3rem;
  text-decoration: none;
  cursor: pointer;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-text-light);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn--secondary {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-accent);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn--text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .project__cta--buttons {
    flex-direction: row;
    justify-content: center;
  }

  .btn {
    max-width: 300px;
  }
}

/* ===================== SCROLL TO TOP ===================== */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 25px;
  z-index: 999;

  border: none;
  outline: none;
  cursor: pointer;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

#scrollToTopBtn:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

#scrollToTopBtn i {
  font-size: 20px;
  color: var(--color-text-light);
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp__button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background-color: #25d366;
  text-decoration: none;

  box-shadow: 3px 3px 5px 1.8px rgba(0, 0, 0, 0.3),
    inset -5px -5px 5px rgba(0, 0, 0, 0.3),
    inset 5px 5px 5px rgba(203, 213, 225, 0.3);

  transition: transform var(--dur-fast) var(--ease);
}

.whatsapp__button:hover {
  transform: translateY(-2px);
}

.whatsapp__button i {
  font-size: 24px;
  color: #ffffff;
}

/* ===================== FOOTER ===================== */
.footer {
  background-color: #24262b;
  padding: 70px 0;
  display: grid;
  justify-items: center;
}

.footer__wrapper {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: var(--color-primary);
  height: 2px;
  width: 50px;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  text-transform: capitalize;
  text-decoration: none;
  font-weight: 300;
  color: #bbbbbb;
  display: block;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(8px);
}

.footer-col .social-links a {
  display: inline-block;
  height: 40px;
  width: 40px;
  background-color: rgba(255, 255, 255, 0.12);
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #ffffff;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.footer-col .social-links a:hover {
  color: #24262b;
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* Footer responsive */
@media (max-width: 767px) {
  .footer-col {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media (max-width: 574px) {
  .footer-col {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* ✅ Centrado vertical real del navbar */
.navbar__wrapper {
  align-items: center;
}

/* ✅ Desktop: el link ocupa toda la altura del navbar */
@media (min-width: 910px) {
  .menu-list {
    align-items: center;
    height: var(--height-navbar);
  }

  .menu-list__link {
    height: var(--height-navbar);
    line-height: var(--height-navbar); /* 🔥 esto centra el texto */
    padding: 0;
  }
}
